﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp5
{
    class Vehicle
    {
        private string _name;
        public string Name 
        {
            get { return this._name; }
            set { this._name = value; }
        }
        public Vehicle() { }

        public Vehicle(string Name) 
        {
            this._name = Name;
        }
        public void SayHi() 
        {
            Console.WriteLine("我是{0}交通工具",this.Name);
        }
    }
}
